package com.autonavi.yunda.yunji.core.enums;

import lombok.Getter;

import java.util.Set;

/**
 * @author cizhong.wcs
 * @date 2022/9/2 10:18
 */
public enum DBType {
    SQL(Set.of(DatasourceType.MYSQL, DatasourceType.TDDL, DatasourceType.PGSQL)),
    REDIS(Set.of(DatasourceType.REDIS)),
    TAIR(Set.of(DatasourceType.TAIR)),
    LINDORM(Set.of(DatasourceType.LINDORM)),
    LINDORM_TABLESERVICE(Set.of(DatasourceType.LINDORM)),
    OSS(Set.of(DatasourceType.OSS));

    @Getter
    private final Set<DatasourceType> datasourceTypes;

    DBType(Set<DatasourceType> datasourceTypes) {
        this.datasourceTypes = datasourceTypes;
    }
}
